package com.aop;

import org.aspectj.lang.JoinPoint;

import java.util.Arrays;

public class AopUtil {
    public void log(){
        System.out.println("日志管理。。。");
    }

    public void before(){
        System.out.println("前置。。。。");
    }

    public void tryCatch(JoinPoint joinPoint,RuntimeException e){
        System.out.println("异常抛出:" + joinPoint.getTarget() + "------>"
                + joinPoint.getSignature().getName()
        + "------>" + Arrays.toString(joinPoint.getArgs()) + "------>异常:" + e);
    }
}
